<extend name="Public:innerbase" />

<block name="css">

<link rel="stylesheet" href="{:STATICS}/kindeditor/themes/default/default.css" />

<link rel="stylesheet" href="{:STATICS}/kindeditor/plugins/code/prettify.css" />

</block>

<block name="js">

<include file="Public:upload" />



<script src="{:STATICS}/kindeditor/kindeditor.js" type="text/javascript"></script>

<script src="{:STATICS}/kindeditor/lang/zh_CN.js" type="text/javascript"></script>

<script src="{:STATICS}/kindeditor/plugins/code/prettify.js" type="text/javascript"></script>

<script src="{:RES}/js/date/WdatePicker.js" type="text/javascript"></script>

<script src="{:STATICS}/vote/common.js" type="text/javascript"></script>

<script type="text/javascript" src="{:STATICS}/validation/js/jquery.validationEngine-zh_CN.js"></script>

<script type="text/javascript" src="{:STATICS}/js/holder.min.js"></script>

<script type="text/javascript" charset="utf-8" src="{:STATICS}/ueditor/ueditor.config.js"></script>

<script type="text/javascript" charset="utf-8" src="{:STATICS}/ueditor/ueditor.all.min.js"> </script>

<script type="text/javascript" charset="utf-8" src="{:STATICS}/ueditor/lang/zh-cn/zh-cn.js"> </script>

<script type="text/javascript">

$(function(){

	$("#editForm").validationEngine("attach",{ 

		promptPosition:"centerRight",

		scroll:true,

		showOneMessage:true

	});

	var ue = UE.getEditor('UEContent');

});



var editor;

KindEditor.ready(function(K) {

	editor = K.create('#info', {

	resizeType : 1,

	allowPreviewEmoticons : false,

	allowImageUpload : true,

	uploadJson : '/index.php?m=User&c=Qiniu&a=kindEditorUpload',

	items : [

	'source','undo','plainpaste','wordpaste','clearhtml','quickformat','selectall','fullscreen','fontname', 'fontsize','subscript','superscript','indent','outdent','|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline','hr']

	});

});
</script>

<!-- 单图上传 -->

<script type="text/javascript">

	$("[data-toggle='upload-reward-img']>.upload-file").AjaxFileUpload({

		action: "{:U('Qiniu/upload')}",

		onComplete: function(filename, resp) {

			if(resp.error !=0){

				alert(resp.message);

			}

			else{

				var wrapper = $(sprintf(TPL,resp.url,targetName,resp.url));

				wrapper.appendTo('#'+target);

				wrapper.find('.img-remove').click(function(){

					$(this).parent().remove();

				});

			}

		}

	});

	

	$(function(){

		$('[data-toggle="upload-reward-img"]').click(function(){

			window.target = $(this).attr('data-target');

			window.targetName = $(this).attr('data-target-name');

		});

		$('.img-remove').click(function(){

			$(this).parent().remove();

		});

		$('.upload-music').click(function(){

			window.targetMusic = $(this).attr('data-target');

		});

	})

	</script>

<!-- 单图上传 end-->

</block>

<block name="content">

<div class="container-fluid">



	<ul class="nav nav-tabs" role="tablist">

		<li role="presentation" class="active"><a href="#" aria-controls="home">参数设置</a></li>

	</ul>

	<div class="page-header wm-page-header">



	</div>

	<form class="form-horizontal" method="post" >
		<input type="hidden" name="id" value="{$set.id}" />

		<div class="form-group">

			<label class="col-sm-2">一级返佣(百分比)</label>

			<div class="col-md-6">

				<div class="input-group">

					<input type="text" class="form-control" name="first" value="{$set.first}"

						   style="width:50px;"/>

												<span class="input-group-btn" >

								<button class="btn btn-default" type="button" style="margin-right: 676px;">%

								</button>

							</span>

				</div>

			</div>

		</div>

		<div class="form-group">

			<label class="col-sm-2">二级返佣(百分比)</label>

			<div class="col-md-6">

				<div class="input-group">

					<input type="text" class="form-control" name="second" value="{$set.second}"

						   style="width:50px;"/>

												<span class="input-group-btn" >

								<button class="btn btn-default" type="button" style="margin-right: 676px;">%

								</button>

							</span>

				</div>

			</div>

		</div>

		<div class="form-group">

			<label class="col-sm-2">三级返佣(百分比)</label>

			<div class="col-md-6">

				<div class="input-group">

					<input type="text" class="form-control" name="three" value="{$set.three}"

						   style="width:50px;"/>

												<span class="input-group-btn" >

								<button class="btn btn-default" type="button" style="margin-right: 676px;">%

								</button>

							</span>

				</div>

			</div>

		</div>
		
		<div class="form-group">
         <label class="col-sm-2">是否开启控制</label>
        <div class="col-md-4">
          <label>
          <input type="radio"  name="status"  <if condition="$set['status'] eq 1"> checked="checked"</if> value="1" />开启
          
          <input type="radio"  name="status"   <if condition="$set['status'] eq 0"> checked="checked"</if> value="0" />不开启
          
          </label>
           <span class="help-block">开启状态下，下面配置才会生效 </span>
        </div>
      </div>

		<div class="form-group">

			<label class="col-sm-2">虚拟盘成功率</label>

			<div class="col-md-6">

				<div class="input-group">

					<input type="text" class="form-control" name="suc_xu" value="{$set.suc_xu}"

						   style="width:50px;"/>

												<span class="input-group-btn" >

								<button class="btn btn-default" type="button" style="margin-right: 676px;">（请填写1-100比率值 100表示百分百成功）

								</button>

							</span>

				</div>

			</div>

		</div>

		<div class="form-group">

			<label class="col-sm-2">实盘成功率</label>

			<div class="col-md-6">

				<div class="input-group">

					<input type="text" class="form-control" name="suc_true" value="{$set.suc_true}"

						   style="width:50px;"/>

												<span class="input-group-btn" >

								<button class="btn btn-default" type="button" style="margin-right: 676px;">（请填写1-100比率值 100表示百分百成功）

								</button>

							</span>

				</div>

			</div>

		</div>

		
<div class="form-group">

			<label class="col-sm-2">团队领导人拿点</label>

			<div class="col-md-6">

				<div class="input-group">

					<input type="text" class="form-control" name="lingdao" value="{$set.lingdao}"

						   style="width:50px;"/>

												<span class="input-group-btn" >

								<button class="btn btn-default" type="button" style="margin-right: 676px;">（%）

								</button>

							</span>

				</div>

			</div>

		</div>
		


		

		

		<div class="form-group">

			<div class="col-md-4 col-sm-offset-2">

				<input type="hidden" name="id" value="{$set.id}">

				<input type="submit" id="ready"  class="btn btn-primary ashui" value="保存" />

			</div>

		</div>

	</form>

</div>

</block>